Module-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
struct emote_dto
Link copied to clipboard
entity game_asset
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
struct plot
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val AMOUNT: text = "amount"
Link copied to clipboard
val CURSOR: page_cursor = null
Link copied to clipboard
val ID: text = "id"
Link copied to clipboard
val name_attr: text = "chromia.IOriginal.name"
Link copied to clipboard
val PAGE_LIMIT: integer = 10000

Functions

Link copied to clipboard
Link copied to clipboard
function _burn_asset(asset_instance: instance, original_id: byte_array, amount: integer, account_id: byte_array)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function _unsafe_delete_account(account: account)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function asset_id(name: text): byte_array
Link copied to clipboard
Link copied to clipboard
function calculate_tokens(account: account): integer
Link copied to clipboard
function charge_ft3_asset(name: text, amount: integer, account: account)
Link copied to clipboard
function charge_fungible_item(name: text, amount: integer, account_id: byte_array)
Link copied to clipboard
function charge_original(name: text, amount: integer, account_id: byte_array)
Link copied to clipboard
Link copied to clipboard
function create_fungible_item(interface_name: text, item: original_minting_asset, amount: integer): instance
Link copied to clipboard
function deduct_balance(account: account, amount: integer, token_name: text)
Link copied to clipboard
function delete_asset(account: account, instance: instance)
Link copied to clipboard
Link copied to clipboard
function ensure_balance(account: account, name: text): balance
Link copied to clipboard
function ensure_game_assets(account: account)
Link copied to clipboard
function find_all_instances_and_amounts(account_id: byte_array, interface: dclass, from: integer, page_size: integer): list<(instance: instance, amount: integer)>
function find_all_instances_and_amounts_multi_interfaces(account_id: byte_array, interfaces_map: map<dclass, text>, from: integer, page_size: integer): map<text, list<(instance: instance, amount: integer)>>
function find_all_instances_and_amounts_with_special_account(account_id: byte_array, interface: dclass, from: integer, page_size: integer): list<(instance: instance, amount: integer)>
function find_all_instances_from_owner_with_interface(account_id: byte_array, interface: dclass, _limit: integer, _offset: integer): list<instance>
Link copied to clipboard
function find_all_users_and_owned_originals(interface: dclass, cursor: page_cursor, exclude_collateral_and_fees: boolean): (data: list<(account: byte_array, rowid: rowid, instance: instance, amount: integer)>, max_rowid_covered: rowid)
Link copied to clipboard
function find_fungible_original_id_if_exists(account_id: byte_array, prototype_name: text): byte_array?
Link copied to clipboard
function get_alice_balance(account: account): balance?
Link copied to clipboard
Link copied to clipboard
function get_all_emotes(account_id: byte_array): list<emote_dto>
Link copied to clipboard
Link copied to clipboard
function get_all_prototypes_for_interface(interface: text): list<(name: text, instance: instance)>
Link copied to clipboard
function get_assets_by_name(names: set<text>): list<(id: byte_array, name: text, issuing_chain_rid: byte_array)>
Link copied to clipboard
function get_attribute_name(name: text): I
Link copied to clipboard
function get_avatar(account_id: byte_array): map<text, integer>
Link copied to clipboard
Link copied to clipboard
function get_balance(account: account, name: text): balance?
Link copied to clipboard
function get_bjorn_balance(account: account): balance
Link copied to clipboard
Link copied to clipboard
function get_equippables(account_id: byte_array): list<map<text, gtv>>
Link copied to clipboard
function get_fungible_item_balance(name: text, account_id: byte_array): balance?
Link copied to clipboard
Link copied to clipboard
function get_total_balance(account_id: byte_array, prototype: text): integer
Link copied to clipboard
function handle_interface_not_supported(interface_name: text): null
Link copied to clipboard
function init_alice_token()
Link copied to clipboard
function init_asset_interface(account: account)
Link copied to clipboard
function init_asset_interfaces(account: account)
Link copied to clipboard
function init_avatar_interfaces(account: account)
Link copied to clipboard
function init_tools_interfaces(account: account)
Link copied to clipboard
function list_all(): (FT3: list<(name: text,)>, Originals: list<(name: text, interface: text)>)
Link copied to clipboard
function list_all_by_player(account_id: byte_array): (FT3: list<list_item_dto>, Originals: list<list_item_dto>)
Link copied to clipboard
function lock_asset_without_history(account: account, original_id: byte_array, reason: text)
Link copied to clipboard
function lock_equippable(account: account, original_id: byte_array)
Link copied to clipboard
function mint_all_standard_interfaces(account: account, username: text)
Link copied to clipboard
function mint_avatar_original(eyes: integer, eyebrows: integer, mouth: integer, skin_color: integer, hair_color: integer, eye_color: integer, account_id: byte_array): instance
Link copied to clipboard
function mint_fungible_item(account: account, fungible_id: byte_array, amount: integer): instance
Link copied to clipboard
function mint_non_fungible_item(interface_name: text, item: original_minting_asset, amount: integer): instance
Link copied to clipboard
function new_plot(plot: plot, chain_id: text, contract_address: byte_array)
Link copied to clipboard
function owns_original(account_id: byte_array, asset_id: byte_array): boolean
Link copied to clipboard
function pay_to_alice(amount: integer, account: account, auth_descriptor_id: byte_array, token_name: text, alice_account_id: byte_array)
Link copied to clipboard
function prototype_exists(name: text): boolean
Link copied to clipboard
function prototype_exists_for_interface(name: text, interface: text): boolean
Link copied to clipboard
function prototype_exists_for_interfaces(name: text, interfaces: list<text>): boolean
Link copied to clipboard
function prototype_registration_allowed(name: text, interface: text): boolean
Link copied to clipboard
function query_balances(name: text, account_id: byte_array, special_account_ids: list<byte_array>): list<balance>
function require_original_with_special_account_transferrable(account: account, original: instance, account_list: list<byte_array>, special_account_type: text, quantity: integer): integer
Link copied to clipboard
function reward_animal_item(name: text, amount: integer, player: player): instance?
Link copied to clipboard
function reward_asset(item_id: text, type: text, amount: integer, account: account)
Link copied to clipboard
function reward_bjorn(amount: integer, account: account)
Link copied to clipboard
function reward_breakable_tool(item_id: text, amount: integer, account: account): instance
Link copied to clipboard
function reward_erc721_item(interface_name: text, name: text, amount: integer, account_id: byte_array, chain_id: text, contract_address: byte_array, token_id: integer): instance?
Link copied to clipboard
function reward_erc721_original_asset(item_id: text, interface_name: text, amount: integer, account_id: byte_array, chain_id: text, contract_address: byte_array, token_id: integer): instance?
Link copied to clipboard
function reward_ft3_asset(name: text, amount: integer, account: account)
Link copied to clipboard
function reward_fungible_item(interface_name: text, name: text, amount: integer, account: account, username: text): instance
Link copied to clipboard
function reward_non_fungible_item(interface_name: text, name: text, amount: integer, account: account, username: text): instance
Link copied to clipboard
function reward_original_asset(item_id: text, interface_name: text, amount: integer, account_id: byte_array): instance?
Link copied to clipboard
function reward_original_asset_for_username(item_id: text, interface_name: text, amount: integer, account: account, username: text): instance?
Link copied to clipboard
function transfer_alice(alice_token_name: text, inputs: list<xfer_input>, outputs: list<xfer_output>, amount: integer, from: account, to: account)
Link copied to clipboard
function transfer_ft3(from: account, to: account, auth_descriptor_id: byte_array, asset: asset, amount: integer)
Link copied to clipboard
function transfer_ft3_excluding_alice(token_name: text, amount: integer, from: account, to: account)
Link copied to clipboard
function transfer_ft3_unsafe(from: account, to: account, auth_descriptor_id: byte_array, asset_name: text, amount: integer)
Link copied to clipboard
function transfer_original(sender: account, instance: instance, receiver: byte_array, amount: integer?)
Link copied to clipboard
function try_equip_many(equippables: list<text>, account_id: byte_array)
Link copied to clipboard
function unequip(equippable_id: byte_array, account_id: byte_array)
Link copied to clipboard
function unlock_asset_without_history(account: account, original_id: byte_array, reason: text)
Link copied to clipboard
function unlock_equippable(account: account, original_id: byte_array)
Link copied to clipboard
function update_avatar_appearance(eyes: integer, eyebrows: integer, mouth: integer, skin_color: integer, hair_color: integer, eye_color: integer, account_id: byte_array)
Link copied to clipboard
function update_equipments(equippables_to_equip: list<byte_array>, account_id: byte_array)
Link copied to clipboard
function verify_owns_all_npcs(account_id: byte_array, names: set<text>)

Queries

Link copied to clipboard
@mount("assets.get_alice_bnb") query get_alice_bnb(account_id_hex: text): integer
@mount("assets.get_all_grouped_originals_from_owner_with_interface_q") query get_all_grouped_originals_from_owner_with_interface_q(account_id: byte_array, interface: text, attributes: list<text>, from: integer, page_size: integer): list<prototype_group>
@mount("assets.get_all_original_instances_with_interface_q") query get_all_original_instances_with_interface_q(interface: text, attribute_names: list<I>, from: integer, page_size: integer): list<map<I, gtv?>>
@mount("assets.get_all_original_prototypes_names_with_interface_q") query get_all_original_prototypes_names_with_interface_q(interface: text): list<text>
Link copied to clipboard
@mount("assets.get_all_original_prototypes_q") query get_all_original_prototypes_q(interface: text, attributes: list<I>): map<text, map<I, gtv?>>
@mount("assets.get_all_originals_from_owner_with_interface_q") query get_all_originals_from_owner_with_interface_q(account_id: byte_array, interface: text, attributes: list<text>, from: integer, page_size: integer): list<map<text, gtv?>>
@mount("assets.get_counted_originals_from_owner_with_interface_q") query get_counted_originals_from_owner_with_interface_q(account_id: byte_array, interface: text, attributes: list<text>, from: integer, page_size: integer): list<map<text, gtv?>>
Link copied to clipboard
@mount("assets.get_original_prototype_q") query get_original_prototype_q(name: text, attributes: list<I>): map<I, gtv?>
Link copied to clipboard
@mount("assets.get_original_prototypes_q") query get_original_prototypes_q(prototypes_names: set<text>, attributes: list<I>): map<text, map<I, gtv?>>
Link copied to clipboard
@mount("assets.get_owned_originals_with_id_and_amount") query get_owned_originals_with_id_and_amount(account_id: byte_array, interface: text, attributes: list<text>, from: integer, page_size: integer): list<map<text, gtv?>>
@mount("assets.get_owned_originals_with_id_and_amount_multi_interfaces") query get_owned_originals_with_id_and_amount_multi_interfaces(account_id: byte_array, interface_attr_map: map<text, list<text>>, from: integer, page_size: integer): map<text, list<map<text, gtv?>>>
@mount("assets.get_owned_originals_with_id_and_amount_with_special_account") query get_owned_originals_with_id_and_amount_with_special_account(account_id: byte_array, interface: text, attributes: list<text>, from: integer, page_size: integer): list<map<text, gtv?>>
Link copied to clipboard
@mount("assets.get_owned_originals_with_name_and_amount") query get_owned_originals_with_name_and_amount(account_id: byte_array, interface: text, attributes: list<text>, from: integer, page_size: integer): list<map<text, gtv?>>
Link copied to clipboard
@mount("assets.get_sorting_scores") query get_sorting_scores(): list<(score: integer, asset_name: text)>

Operations

Link copied to clipboard
@mount("assets.add_sorting_scores") operation add_sorting_scores(scores: map<text, integer>)
Link copied to clipboard
@mount("assets.burn_assets") operation burn_assets(assets: list<burn_asset_dto>, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("assets.create_prototype") operation create_prototype(interface_name: text, original_description: text, additional_dependencies: map<I, attribute_type>?, prototype_name: text)
Link copied to clipboard
@mount("assets.create_ug_equippable_model") operation create_ug_equippable_model(url: text, slots: list<text>)
Link copied to clipboard
@mount("assets.initialize") operation initialize()
Link copied to clipboard
@mount("assets.mint_asset_to") operation mint_asset_to(account_id: byte_array, prototype_name: text, count: integer)
Link copied to clipboard
@mount("assets.mint_erc721_asset_to") operation mint_erc721_asset_to(account_id: byte_array, prototype_name: text, token_id: integer, count: integer)
Link copied to clipboard
@mount("assets.register_collateralized_resource") operation register_collateralized_resource(name: text, collateral_amount: integer)
Link copied to clipboard
@mount("assets.register_ft3_asset") operation register_ft3_asset(name: text, hidden_in_inventory: boolean)
Link copied to clipboard
@mount("assets.register_fungible_resource") operation register_fungible_resource(name: text)
Link copied to clipboard
@mount("assets.register_soulbound_item") operation register_soulbound_item(name: text)
Link copied to clipboard
@mount("assets.register_voucher") operation register_voucher(name: text, interface: text)